package main

import "fmt"

func main() {
	var city [50]string
	var town [100]string
	var village [200]string
	var place [60]int
	city[0] = "福州"
	town[0] = "仓山区建新街道"
	village[0] = "江南水都心巢"
	place[0] = 814
	fmt.Println(city[0], "-", town[0], "-", village[0], "-", place[0])
	//数组循环遍历-int
	var myplace=[5]int{805,914,710,605,413}
	for i:=0;i<5;i++{
		fmt.Println(myplace[i])
	}
	var cityplace= [5]string{"杭州","镇江","乌鲁木齐","哈尔滨","青岛"}
	for i:=0;i<5;i++{
		fmt.Printf("%d-%s\n",i,cityplace[i])
	}
	//二维数组
	var roundTime=[3][2]string{{"22:15","15:30"},{"18:20","04:30"},{"09:50","23:18"}}
	for i:=0;i<3;i++{
		for j:=0;j<2;j++{
			fmt.Printf("[%d,%d]-%s\n",i,j,roundTime[i][j])
		}
	}
	//....
	var arr1=[...]string{"海南","浙江","河北","山东","山西","陕西"}
	fmt.Println(len(arr1))
	for i:=0;i<len(arr1);i++{
		fmt.Println(arr1[i])
	}
}
